<template>
  <div>
    <i v-if="isSuccess == 0" class="el-icon-error" />
    <i v-else class="el-icon-success" />
    <span>{{ text }}</span>
  </div>
</template>

<script>
export default {
  props: {
    isSuccess: {
      type: Number,
      default: 0,
    },
    text: {
      type: String,
      default: '',
    },
  },
}
</script>

<style lang="scss" scoped>
.el-icon-error {
  margin: 0 10px;
  color: #fa541c;
}
.el-icon-success {
  margin: 0 10px;
  color: #3abf81;
}
</style>
